package com.example.dc.Service.Impl;


import com.example.dc.Service.PersonalSerive;
import com.example.dc.Service.QuestionService;
import com.example.dc.domain.PersonalQuestion;
import com.example.dc.domain.Question;
import com.example.dc.mapper.PersonalMapper;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PersonalServiceImpl implements PersonalSerive {

    @Autowired
    private PersonalMapper personalMapper;

    @Override
    public List<PersonalQuestion> setFourStanderQuestion() {
        return personalMapper.setFourStanderQuestion();
    }

    @Override
    public void updateQuestionTime(Integer qusetionId,Integer userId) {
        personalMapper.updateQuestionTime(qusetionId,userId);
    }
    @Override
    public void insertQuestion(Integer questionId, Integer userId,Double multiple,Integer secondStander){
        personalMapper.insertQuestion(questionId, userId, multiple,secondStander);
    }

    @Override
    public Double getMutiple(Integer questionId, Integer userId){
        return personalMapper.getMutiple(questionId, userId);
    }

    @Override
    public Integer healthIsOpen(Integer userId) {
        return personalMapper.healthIsOpen(userId);
    }
}
